From: Ignacy KuchciƄski Date: Sat, 3 Jan 2026 15:17:45 +0000 (+0100) Subject: polkitAgent: Allow malcontent action when locked X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~39^2~1^2~77 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=572122f524693b846e1f9f2264ffad24f5479d91;p=gnome-shell.git polkitAgent: Allow malcontent action when locked Allow org.freedesktop.Malcontent.SessionLimits.Extend action id when screen is locked, so it's possible to show polkit authentication dialogs on lock screen for parental controls session limits integration in the future. Part-of: --- diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 119f2da66..c1566c263 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -439,8 +439,10 @@ class AuthenticationAgent extends Shell.PolkitAuthenticationAgent { } _onInitiate(nativeAgent, actionId, message, iconName, cookie, userNames) { - // Don't pop up a dialog while locked - if (Main.sessionMode.isLocked) { + // Don't pop up a dialog while locked, unless it's triggered by user + // action from the lock screen, such as extending the session limits + if (Main.sessionMode.isLocked && + actionId !== 'org.freedesktop.Malcontent.SessionLimits.Extend') { Main.sessionMode.connectObject('updated', () => { Main.sessionMode.disconnectObject(this);